package com.restaurant.controller.admin;

import com.restaurant.entity.Admin;
import com.restaurant.service.intf.AdminService;
import com.restaurant.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

@RestController
@RequestMapping("/restaurant/admin")
public class AdminController {

    @Autowired
    private AdminService adminService;
    @PostMapping("/login.do")
    public R  adminLogin(String username,String password, String captcha, HttpSession session) {
        return adminService.adminLogin(username,password,captcha,session);
    }
}
